package com.joey.cloud.psn.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.joey.cloud.communal.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户与组织关系
 * </p>
 *
 * @author Joey
 * @since 2021-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysRelPersonGroup对象", description="用户与组织关系")
public class SysRelPersonGroup extends BaseEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "用户id")
    @JsonSerialize(using= ToStringSerializer.class)
    @TableField("psnId")
    private Integer psnId;

    @ApiModelProperty(value = "组织id")
    @JsonSerialize(using= ToStringSerializer.class)
    @TableField("groupId")
    private Integer groupId;

    @ApiModelProperty(value = "关系类型 1=组内成员")
    @TableField("relType")
    private Integer relType;


}
